// 诊疗项目管理 API
import request from './request'

// 分页查询诊疗项目信息
export const getMedicalServicesList = (params) => {
  return request.post('/medical_services/page', params)
}

// 根据ID查询诊疗项目信息
export const getMedicalServiceById = (id) => {
  return request.get(`/medical_services/${id}`)
}

// 新增诊疗项目信息
export const addMedicalService = (data) => {
  return request.post('/medical_services/add', data)
}

// 修改诊疗项目信息
export const updateMedicalService = (data) => {
  return request.put('/medical_services/update', data)
}

// 删除诊疗项目信息
export const deleteMedicalService = (id) => {
  return request.post(`/medical_services/delete/${id}`)
}

// 批量删除诊疗项目信息
export const batchDeleteMedicalServices = (ids) => {
  return request.post('/medical_services/batch/delete', ids)
}
